package com.tzbank.entity.mpass;

import com.tzbank.entity.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_push_req_msg")
@Table(appliesTo = "mb_push_req_msg", comment = "推送消息信息表")
public class PushReqMsg extends BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1455146213560504671L;

	/**
	 * 消息id 随机生成 唯一
	 */
	@ApiModelProperty(value = "消息id 随机生成 唯一")
	@Column(name = "msg_id", columnDefinition = "varchar(100)  NOT NULL COMMENT '消息id 随机生成 唯一'")
	private String msgId;

	/**
	 * 消息模板id
	 */
	@ApiModelProperty(value = "消息模板id")
	@Column(name = "template_id", columnDefinition = "varchar(100)  NOT NULL COMMENT '消息模板id'")
	private String templateId;

	/**
	 * 任务名称
	 */
	@ApiModelProperty(value = "任务名称")
	@Column(name = "task_name", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '任务名称'")
	private String taskName;

	/**
	 * 消息推送标题
	 */
	@ApiModelProperty(value = "消息推送标题")
	@Column(name = "title", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '消息推送标题'")
	private String title;

	/**
	 * 消息推送内容
	 */
	@ApiModelProperty(value = "消息推送内容")
	@Column(name = "content", columnDefinition = " text DEFAULT NULL COMMENT '消息推送内容'")
	private String content;

	/**
	 * 消息推送跳转地址
	 */
	@ApiModelProperty(value = "消息推送跳转地址")
	@Column(name = "uri", columnDefinition = "varchar(200)  DEFAULT NULL COMMENT '消息推送跳转地址'")
	private String uri;

	/**
	 * 消息推送状态: 0-未推送 1-推送成功 2-推送失败
	 */
	@ApiModelProperty(value = "消息推送状态")
	@Column(name = "push_state", columnDefinition = "varchar(20)  DEFAULT NULL COMMENT '消息推送状态 0-未推送  1-推送成功  2-推送失败'")
	private String pushState;

	/**
	 * 读取状态：0-未读取 1-已读取
	 */
	@ApiModelProperty(value = "读取状态：0-未读取 1-已读取")
	@Column(name = "read_status", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '读取状态：0-未读取 1-已读取'")
	private String readStatus;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "text  DEFAULT NULL COMMENT '备注'")
	private String remark;
}
